package cn.amos.server.ws.service;

import cn.amos.server.request.LoginForm;
import cn.amos.server.request.RegisterForm;
import cn.amos.server.response.LoginInfoVO;

import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import java.util.List;

/**
 * PROJECT: ws-gateway
 * DESCRIPTION: 暴露登录相关接口
 *
 * @author amos.wang
 * @date 2019/4/12
 */
@WebService
public interface WsLoginService {

    @WebResult(name = "loginVO")
    LoginInfoVO register(@WebParam(name = "registerForm") RegisterForm registerForm);

    @WebResult(name = "loginVO")
    LoginInfoVO login(@WebParam(name = "loginForm") LoginForm loginForm);

    @WebResult(name = "loginVO")
    LoginInfoVO getLoginInfo(String token);

    @WebResult(name = "loginVOList")
    List<LoginInfoVO> hasLogin();

}
